package com.xsd.xsdhouduan.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 任务请求DTO
 */
@Data
public class TaskRequest {
    
    @NotBlank(message = "任务标题不能为空")
    private String title;
    
    @NotBlank(message = "任务描述不能为空")
    private String description;
    
    @NotNull(message = "奖励金额不能为空")
    private BigDecimal reward;
    
    @NotBlank(message = "学校不能为空")
    private String schoolName;
    
    private String startTime;
    
    private String endTime;
}
